#ifndef _ASSEMBLY_RECORD_HEADER_H_
#define _ASSEMBLY_RECORD_HEADER_H_

typedef struct _RHP_VideoPara_
{
	unsigned char Standard;
	unsigned char FrameRate;
	unsigned short Width;
	unsigned short Height;
}RHPVideoPara_t;

typedef struct _RHP_AudioPara_
{
	unsigned char Switch;
	unsigned char sampleBits;
	unsigned short sampleRate;
}RHPAudioPara_t;

typedef struct _RHP_DateTime_
{
	unsigned char Year;
	unsigned char Month;
	unsigned char Day;
	unsigned char Hour;
	unsigned char Minute;
	unsigned char Second;
}RHPDateTime_t;

typedef struct _RecordHeaderPara_
{
	unsigned char Chn;
	unsigned char RecordType;
	unsigned short DevType;
	unsigned char DevName[12];
	RHPVideoPara_t VideoPara;
	RHPAudioPara_t AudioPara;
	RHPDateTime_t StartTime;
	RHPDateTime_t EndTime;
}RecordHeaderPara_t;

/*获取文件头长度*/
unsigned int GetRecordFileHeaderLen();

/*该函数根据传入的参数组装成锐明格式的文件头放入buffer中，返回文件头的长度*/
unsigned int AssemblyRecordHeader(RecordHeaderPara_t &RecordPara, char *HeaderBuffer, unsigned int BufferLen);

#endif

